package com.data.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.DictDataVo;
import com.data.core.entry.DictData;
import java.util.List;


/**
* @version: V1.0
* @author: szw
* @className: DictDataService
* @packageName: DictDataService
* @description: 字典接口
* @data: 2021-1-19 
**/ 
public interface DictDataService extends IService<DictData> {

    /**
     * 字典保存\更新方法
     * @param dictDataVo
     * @param flag  更新or保存
     * @return
     */
    int saveOrUpdateDictData(DictDataVo dictDataVo,Boolean flag)throws Exception;

    /**
     * 根据id查找字典信息
     * @param id
     * @return
     */
    DictData getByDictDataId(Long id)throws Exception;

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Long id)throws Exception;

    /**
     * 分页查询字典列表
     * @param page
     * @param dictDataVo
     * @return
     */
    IPage<DictData> dictDataPage(Page<DictData> page, DictDataVo dictDataVo)throws Exception;

    /**
     * 查询字典列表信息
     * @param dictDataVo
     * @return
     */
    List<DictData> getDictDataList(DictDataVo dictDataVo)throws Exception;
}
